<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改牛奶入库')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ncInputMilk-edit" th:object="${ncInputMilk}">
            <input id="inputId" name="inputId" th:field="*{inputId}"  type="hidden">
			<div class="form-group">
				<label class="col-sm-3 control-label">牛奶批次：</label>
				<div class="col-sm-8">
					<input id="inputCode" name="inputCode" th:field="*{inputCode}" readonly="true" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">入库数量（kg）：</label>
				<div class="col-sm-8">
					<input id="inputAmout" name="inputAmout" th:field="*{inputAmout}" class="form-control" type="number">
				</div>
			</div>
			<!--<div class="form-group">
				<label class="col-sm-3 control-label">剩余量：</label>
				<div class="col-sm-8">
					<input id="leftAmout" name="leftAmout" th:field="*{leftAmout}" class="form-control" type="text">
				</div>
			</div>-->
			<!--<div class="form-group">
				<label class="col-sm-3 control-label">瓶数：</label>
				<div class="col-sm-8">
					<input id="bottleAmount" name="bottleAmount" th:field="*{bottleAmount}" class="form-control" type="text">
				</div>
			</div>-->
			<div class="form-group">
				<label class="col-sm-3 control-label">挤奶人员：</label>
				<div class="col-sm-8">
					<select id="createBy" class="form-control select2-multiple" name="milkman">
						<option th:each="user:${milkman}" th:value="${user.userId}" th:text="${user.userName}"
								th:selected="${user.flag}" th:disabled="${user.status == '1'}"></option>
					</select>
				</div>
				<!--<div class="col-sm-8">
					<input id="milkman" name="milkman" th:field="*{milkman}" class="form-control" type="text">
				</div>-->
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">消毒人员：</label>
				<div class="col-sm-8">
					<select id="disinfector" class="form-control select2-multiple" name="disinfector">
						<option th:each="user:${disinfector}" th:value="${user.userId}" th:text="${user.userName}"
								th:selected="${user.flag}" th:disabled="${user.status == '1'}"></option>
					</select>
				</div>

				<!--<div class="col-sm-8">
					<input id="disinfector" name="disinfector" th:field="*{disinfector}" class="form-control" type="text">
				</div>-->
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">入库时间：</label>
				<div class="col-sm-8">
					<input type="text" style="height: 34px;" data-format="yyyy-MM-dd HH:mm:ss" data-type="datetime" required readonly="true"  th:value="*{#dates.format(inputTime, 'yyyy-MM-dd HH:mm:ss')}" name="inputTime" class="time-input" id="inputTime" />

<!--
					<input id="inputTime" name="inputTime" th:field="*{inputTime}" class="form-control" type="text">-->
				</div>
			</div>
			<!--<div class="form-group">
				<label class="col-sm-3 control-label">入库类型 ：字典：</label>
				<div class="col-sm-8">
					<input id="inputType" name="inputType" th:field="*{inputType}" class="form-control" type="text">
				</div>
			</div>-->
			<div class="form-group">
				<label class="col-sm-3 control-label">入库经手人：</label>
				<div class="col-sm-8">
					<select id="inputUser" class="form-control select2-multiple" name="inputUser">
						<option th:each="user:${inputUser}" th:value="${user.userId}" th:text="${user.userName}"
								th:selected="${user.flag}" th:disabled="${user.status == '1'}"></option>
					</select>
				</div>

				<!--<div class="col-sm-8">
					<input id="inputUser" name="inputUser" th:field="*{inputUser}" class="form-control" type="text">
				</div>-->
			</div>
			<!--<div class="form-group">
				<label class="col-sm-3 control-label">创建者：</label>
				<div class="col-sm-8">
					<input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">创建时间：</label>
				<div class="col-sm-8">
					<input type="text" style="height: 34px;" data-format="yyyy-MM-dd HH:mm:ss"  th:value="*{#dates.format(createTime, 'yyyy-MM-dd HH:mm:ss')}" name="createTime" class="time-input" id="createTime" />

					&lt;!&ndash;<input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">&ndash;&gt;
				</div>
			</div>-->
			<div class="form-group">
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
				<textarea input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text" rows="4"> </textarea>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/ncInputMilk";
		$("#form-ncInputMilk-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});

		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-ncInputMilk-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
